package com.mmall.service;

import com.mmall.commons.ServiceResponse;
import com.mmall.pojo.Category;

import java.util.List;

/**
 * @auther Mr.m
 * @date 2019/3/17-19:35
 */
public interface ICategoryService {
    ServiceResponse addCategory(String categoryName, Integer parentId);

    ServiceResponse updateCategoryName(String categoryName, Integer categoryId);

    ServiceResponse<List<Category>> getChildrenParallelCatepory(int categoryId);

    ServiceResponse<List<Integer>> selectCategoryAndChildrenById(Integer categoryId);

}
